package com.hinnotek.amoeba.ui.activity.old

import android.os.Bundle
import android.view.View
import com.lee.common.base.BaseActivity
import com.hinnotek.amoeba.R
import com.hinnotek.amoeba.databinding.ActivityBusinessListBinding
import com.hinnotek.amoeba.utilities.ClickUtil
import com.hinnotek.amoeba.utilities.IntentUtils

/**
 * 商务列表Activity
 */
class BusinessListActivity : BaseActivity<ActivityBusinessListBinding>(), View.OnClickListener {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setLeftVisible(true)
        setTitle("商务列表")

        setContentView(R.layout.activity_business_list)
    }

    override fun initVew() {
        bindingView.rlContractSigning.setOnClickListener(this)
        bindingView.rlPurchase.setOnClickListener(this)
    }

    override fun setData() {}
    override fun onClick(v: View) {
        if (ClickUtil.isFastClick()) {
            return
        }
        when (v.id) {
            R.id.rl_contract_signing -> IntentUtils.startActivity(
                mContext,
                ContractListActivity::class.java
            )
            R.id.rl_purchase -> IntentUtils.startActivity(
                mContext,
                PurchaseListActivity::class.java
            )
        }
    }
}